package com.example.calcite.csv;

import com.example.calcite.ITable;
import org.apache.calcite.schema.Table;
import org.apache.calcite.schema.impl.AbstractSchema;

import java.util.HashMap;
import java.util.Map;

public class CsvSchema extends AbstractSchema {
    private final Map<String, CsvTable> tables = new HashMap<>();

    public void addTable(String name, CsvTable table) {
        tables.put(name, table);
    }

    @Override
    protected Map<String, Table> getTableMap() {
        return new HashMap<>(tables);
    }
} 